﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Galaktika.BI.Silverlight.Controls.OLAP.Info
{
    public class LevelPropertyInfo
    {
        private String m_Caption = String.Empty;
        public virtual String Caption
        {
            get { return m_Caption; }
            set { m_Caption = value; }
        }

        private String m_Description = String.Empty;
        public virtual String Description
        {
            get { return m_Description; }
            set { m_Description = value; }
        }

        private String m_Name = String.Empty;
        public virtual String Name
        {
            get { return m_Name; }
            set { m_Name = value; }
        }

        private LevelInfo m_ParentLevel = null;
        public LevelInfo ParentLevel
        {
            get { return m_ParentLevel; }
            set { m_ParentLevel = value; }
        }

        private Type m_DataType = null;
        public Type DataType
        {
            get { return m_DataType; }
            set { m_DataType = value; }
        }

        private int m_PropertyType = 0;
        public int PropertyType
        {
            get { return m_PropertyType; }
            set { m_PropertyType = value; }
        }

        public bool IsSystem
        {
            get {
                if ((m_PropertyType & 0x04) == 0x04)
                    return true;
                return false;
            }
        }
        public LevelPropertyInfo()
        {
        }
    }
}
